<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"  crossorigin="anonymous">
</head>
<body>
<!--欢迎你，<p th:text="${student.username}"/>，
你的密码是<p th:text="${student.password}"/>

会话变量username的值是<span th:text="${session.username}"/>-->
<table class="table table-striped">
    <thead>
    <tr>
        <th scope="col">id</th>
        <th scope="col">name</th>
        <th scope="col">password</th>
        <th scope="col">性别</th>
        <th scope="col">班级</th>
        <th scope="col">生日</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="student:${students}">
        <th th:text="${student.id}" />
        <td th:text="${student.name}"></td>
        <td th:text="${student.password}"></td>
        <td th:text="${student.sex}"></td>
        <td th:text="${student.clazz}"></td>
        <td th:text="${student.birthday}"></td>
    </tr>

    </tbody>
</table>
</body>
<script src="/bootstrap/js/jquery.js"  crossorigin="anonymous"></script>
<script src="/bootstrap/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</html>